package com.hwg.emp.web.controller;

import java.io.IOException;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

public class ShowUpdateDeptPageController extends HttpServlet {

	@Override
	protected void service(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {

		req.setCharacterEncoding("utf-8");
		resp.setCharacterEncoding("utf-8");
		String id = req.getParameter("id");
		String name = req.getParameter("name");
		String manager = req.getParameter("manager");
		req.setAttribute("id", id);
		req.setAttribute("name", name);
		req.setAttribute("manager", manager);
		req.getRequestDispatcher("/pages/updateDept.jsp").forward(req, resp);
	}
	
}
